package com.example.administrator.leargit.fragment;

import android.app.Activity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by Administrator on 2016/12/22 0022.
 */
public class TitleBuilder {
    private View viewTitle;
    private TextView tvTitle;
    private ImageView ivLeft;
    private ImageView ivRight;
    private TextView tvLeft;
    private TextView tvRight;

    public TitleBuilder(View view) {
        viewTitle=view.findViewById(0);

    }
    public TitleBuilder(Activity content) {
        viewTitle=content.findViewById(0);
    }

    public TitleBuilder setTitleText(String titleText) {
        return this;
    }
    public TitleBuilder setRightText(String titleText) {
        return this;
    }

    public TitleBuilder setRightOnClickListener(View.OnClickListener rightOnClickListener) {
      return this;
    }

    public TitleBuilder setLeftImage() {
        return this;
    }

    public TitleBuilder setLeftOnClickListener(View.OnClickListener leftOnClickListener) {
      return   this;
    }

    public View build() {
        return viewTitle;
    }
}
